package com.whynot.frame.ms.service;

import com.whynot.frame.auth.shiro.service.UserRealmService;
import com.whynot.frame.ms.entities.SysMenu;
import com.whynot.frame.ms.entities.SysRole;

import java.util.List;
import java.util.Map;


/**
 * 描    述:用户接口
 * 创建时间: 2018/06/20
 */

public interface UserService extends UserRealmService{

    String login(String userName,String pwd) throws Exception;

    Boolean updatePwd(String oldPwd, String newPwd);

    List<SysRole> findRolesByUserId();

    List<SysMenu> findPermissionsByUserId();

    int insertUserRole(String userId,String roleIds);

}